new Vue({
    el: '#app',
    data() {
      return {
        form: {
          serachKey: "",
          page: 1,			//页数
          limit: 10			//每页数据条数
        },
        formData: {},
        tableData: [{}],		//表格数据
        total: 1,
        dialogForm: false,
        title: '',
        multipleSelection: []
      }
    },
    mounted() {
      this.getList()
    },
    methods: {
      onSerach() {				//查询方法
        console.log("搜搜")
      },
      addContract() {
        console.log("跳转")
      },
      getList() {     //获取列表数据换页方法
        let _this = this
        $.ajax({
          type: 'POST',
          url: DomainName + "/GoodsFileInquiry",
          data: {
            Data: "employee"
          },
          complete: function (XMLHttpRequest) {
            if (XMLHttpRequest.getResponseHeader("REDIRECT") == "REDIRECT") {
              window.parent.document.location.href = XMLHttpRequest.getResponseHeader("CONTENTPATH");
            }
          },
          success: function (Result) {
            console.log(Result);
            _this.tableData = Result      //将获取的数据存到表格数据中
          },
          dataType: "json"
        });
      },
      addEnterprise() {
        window.location.href = './Add.html'
      },
      editMember(Employee_SerialNumber) {
        sessionStorage.setItem("Employee_SerialNumber", Employee_SerialNumber)
        window.location.href = './Edit.html?Employee_SerialNumber=' + Employee_SerialNumber
      },
      handleSelectionChange(val) {
        this.multipleSelection = val;
      }
    },
  })